﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace MovieRental.EfRepositoryLibrary.Configuration
{
    public class EfRepositoryConfiguration : ConfigurationSection
    {
        [ConfigurationProperty("connectionStringName", IsRequired=true)]
        public string ConnectionStringName
        {
            get { return (string)base["connectionStringName"]; }
            set { base["connectionStringName"] = value; }
        }

        [ConfigurationProperty("dropAlways", IsRequired=false)]
        public bool DropAlways
        {
            get {return (bool)base["dropAlways"]; }
            set {base["dropAlways"] = value; }
        }
    }

}
